package open.tech.dawn.web.core.service.impl;

import open.tech.dawn.web.core.entity.LoginUser;
import open.tech.dawn.web.core.service.ILoginUserService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.UUID;

public class DefaultLoginUserServiceImpl implements ILoginUserService {

    @Override
    public LoginUser login(HttpServletRequest request, HttpServletResponse response) {
        LoginUser loginUser = new LoginUser();
        loginUser.setId(UUID.randomUUID().toString().replace("-", ""));
        return loginUser;
    }

    @Override
    public void logout(LoginUser loginUser, HttpServletRequest request, HttpServletResponse response) {

    }
}
